var dentalLab;
(function() {
    "use strict";
    var n = function() {
            function n(n, t, i, r) {
                var u = this;
                this.$scope = n;
                this.hebePortal = t;
                this.host = i;
                this.$modalInstance = r;
                n.init = function() {
                    u.hebePortal.registerOnce("ares.hebeModal.imReady", function(n, t) {
                        u.uniqId = t;
                        u.hebePortal.post("hebe.hebeModal.config", {
                            modalName: "dentalLabOrderDetail",
                            data: {
                                id: u.host.id
                            },
                            uniqId: u.uniqId
                        })
                    });
                    u.listenOnceForCloseMessage()
                };
                n.cancel = function() {
                    u.$modalInstance.dismiss()
                }
            }
            return n.prototype.listenOnceForCloseMessage = function() {
                var n = this;
                this.hebePortal.registerOnce("ares.hebeModal.close", function(t, i) {
                    if (i !== n.uniqId) {
                        n.listenOnceForCloseMessage();
                        return
                    }
                    console.log("close data", t);
                    n.$modalInstance.close(t)
                })
            }, n.$inject = ["$scope", "hebePortal", "host", "$modalInstance"], n
        }(),
        t = function() {
            function n() {
                this.restrict = "E";
                this.replace = !0;
                this.template = '\n<div ares-clean-kendo class="enyo" style="height: 100%">\n<style>\n.ares3-dental-lab-detail-modal-wrapper .modal-content {\n    width: 1000px;\n   height: 500px;\n}\n<\/style>\n<div class="enyo-modal-container" style="height:100%;">\n    <div class="enyo-modal-header clearfix">\n        <div class="pull-left enyo-modal-title">技加工单详情<\/div>\n        <div class="pull-right iconfont icon-guanbi" ng-click="cancel();"><\/div>\n    <\/div>\n    <div class="enyo-modal-content" style="height:calc(100% - 32px); padding:10px;">\n        <div style="width: 100%; height: 100%;">\n                <ares-new-home-view target-route="modalEntry"><\/ares-new-home-view>\n        <\/div>\n    <\/div>\n<\/div>\n<\/div>\n        ';
                this.link = function(n) {
                    n.init()
                }
            }
            return n.$inject = [], n
        }();
    dentalLabModule.controller("ares3DentalLabDetailCtrl", Ares.tsController(n));
    dentalLabModule.directive("ares3DentalLabDetailView", Ares.tsDirective(t))
})(dentalLab || (dentalLab = {}));
var dentalLab;
(function() {
    "use strict";
    var n = function() {
        function n() {
            this.restrict = "E";
            this.replace = !0;
            this.template = '\n            <div class="dental-lab-order-track-view-new" style="width: 100%; height: 100%;">\n                <ares-new-home-view target-route="dentalLab.factory"><\/ares-new-home-view>\n            <\/div>\n        '
        }
        return n.$inject = [], n
    }();
    dentalLabModule.directive("ares3DentalLabFactoryViewNew", Ares.tsDirective(n))
})(dentalLab || (dentalLab = {}));
var dentalLab;
(function() {
    "use strict";
    var n = function() {
        function n() {
            this.restrict = "E";
            this.replace = !0;
            this.template = '\n            <div class="dental-lab-import-view-new" style="width: 100%; height: 100%;">\n                <ares-new-home-view target-route="dentalLab.import"><\/ares-new-home-view>\n            <\/div>\n        '
        }
        return n.$inject = [], n
    }();
    dentalLabModule.directive("ares3DentalLabImportViewNew", Ares.tsDirective(n))
})(dentalLab || (dentalLab = {}));
var dentalLab;
(function() {
    "use strict";
    var n = function() {
        function n(n, t) {
            var i = this;
            this.hebePortal = n;
            this.$state = t;
            this.restrict = "E";
            this.replace = !0;
            this.template = '\n            <div class="dental-lab-order-track-view-new" style="width: 100%; height: 100%;">\n                <ares-new-home-view target-route="dentalLab.orderTrack"><\/ares-new-home-view>\n            <\/div>\n        ';
            this.scope = {
                patientId: "="
            };
            this.link = function(n) {
                (function() {
                    n.patientId && i.hebePortal.registerOnce("ares.business.dentalLab.orderList.ready", function(t, r) {
                        i.hebePortal.post("hebe.business.dentalLab.orderList.config", {
                            patientId: n.patientId
                        }, r)
                    });
                    n.$watch(function() {
                        return i.$state.current.name
                    }, function(t) {
                        t == "patientDentalLab" && n.patientId && i.hebePortal.registerOnce("ares.business.dentalLab.orderList.ready", function(t, r) {
                            i.hebePortal.post("hebe.business.dentalLab.orderList.config", {
                                patientId: n.patientId
                            }, r)
                        })
                    })
                })()
            }
        }
        return n.$inject = ["hebePortal", "$state"], n
    }();
    dentalLabModule.directive("ares3DentalLabOrderTrackViewNew", Ares.tsDirective(n))
})(dentalLab || (dentalLab = {}));
var dentalLab;
(function() {
    "use strict";
    var n = function() {
        function n() {
            this.restrict = "E";
            this.replace = !0;
            this.template = '\n            <div class="dental-lab-order-track-view-new" style="width: 100%; height: 100%;">\n                <ares-new-home-view target-route="dentalLab.product"><\/ares-new-home-view>\n            <\/div>\n        '
        }
        return n.$inject = [], n
    }();
    dentalLabModule.directive("ares3DentalLabProductViewNew", Ares.tsDirective(n))
})(dentalLab || (dentalLab = {}));
var dentalLab;
(function() {
    "use strict";
    var n = function() {
        function n() {
            this.restrict = "E";
            this.replace = !0;
            this.template = '\n            <div class="dental-lab-settlement-view-new" style="width: 100%; height: 100%;">\n                <ares-new-home-view target-route="dentalLab.settlement"><\/ares-new-home-view>\n            <\/div>\n        '
        }
        return n.$inject = [], n
    }();
    dentalLabModule.directive("ares3DentalLabSettlementViewNew", Ares.tsDirective(n))
})(dentalLab || (dentalLab = {}));
var dentalLab;
(function() {
    "use strict";
    var n = function() {
        function n(n) {
            this.$modal = n
        }
        return n.prototype.browseWorkflowDialog = function(n) {
            return this.$modal.open({
                animation: !0,
                backdrop: "static",
                template: "<ares3-dental-lab-detail-view><\/ares3-dental-lab-detail-view>",
                controller: "ares3DentalLabDetailCtrl",
                windowClass: "modal-1000w-dialog ares3-dental-lab-detail-modal-wrapper",
                resolve: {
                    host: function() {
                        return {
                            id: n.referenceId
                        }
                    }
                }
            }).result
        }, n.$inject = ["$modal"], n
    }();
    dentalLabModule.factory("dentalLabOrderUtil", Ares.tsProvider(n))
})(dentalLab || (dentalLab = {}));